package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.MaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.multipart.MultipartFile;

public interface MaterialService extends IService<WmMaterial> {
    /**
     * 素材列表查询
     * @param dto
     * @return
     */
    ResponseResult findList(MaterialDto dto);

    /**
     * 素材上传
     * @param
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);

    /**
     * 删除素材
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);

}
